<cpanel setvar="headerimg=../images/mailmenu.gif">
<cpanel setvar="dprefix=../">
<cpanel setvar="headerinclude=mail/pops_head.html">
<cpanel Branding="include(stdheader.html)">
    
<cpanelfeature popaccts>
  	<cpanelif $FORM{'account'}>
		<?cp CommuniGate::provisioniPhone() account=$FORM{'account'},password=$FORM{'password'},number=$FORM{'number'} ?>
        </cpanelif>
</cpanelfeature>

<div class="body-content">
    
<cpanelfeature popaccts>
	
    <cpanel include="managelist.html">
    <div><div class="spriteicon_img_mini" id="icon-manageaccounts_mini"></div></div>
	<cpanel setvar="vidtut_name=emailaccounts">
	<cpanel setvar="vidtut_header=MENUEmailAccounts">
	<cpanel setvar="vidtut_description=VidPopDesc">
	<cpanel setvar="vidtut_video_name=emailaccount-low">
	<cpanel setvar="vidtut_width=450">
	<cpanel setvar="vidtut_height=345">	
</cpanelfeature>

<!-- This function makes $CPVAR{'maindiscard'} set to 1 or 0 -->
<?cp Email::checkmaindiscard(,) ?>

<cpanelfeature !popaccts> 
    <style text="text/css">
    .disable,.input-button,.popselect,.expbox { display:none }
    </style>
</cpanelfeature>

<cpanelfeature popaccts> 
    <?cp StatsBar::stat( [p class="caution"]$LANG{'statsattention'}&nbsp;%&nbsp;$LANG{'statsoutof'}&nbsp;%$LANG{'available'}&nbsp;$LANG{'MENUEmailAccounts'}[/p],count,max) display=emailac_counts,warnings=1,warninglevel=80,infinitylang=true ?>
    
  	<cpanelif $CPVAR{'statsbar_emailac_counts_maxed'}>

	<style type="text/css">
	.highlight{ display:none }
	</style>svn s
	<p class="alert_box">
		<cptext '[output,strong,Warning]: You are currently using the maximum number of Email Accounts.'> <cptext 'If you need more please contact your service provider.'>
 </p> 
  </cpanelif>
    
    <br />
</cpanelfeature>

<h2><cpanel langprint="CGPGWAccountsOnly"></h2>
<BR>

<cpanelfeature popaccts>
 <table border="0" cellpadding="0" width="98%" cellspacing="0" class="sortable truncate-table" id="mailtbl">
        <thead>
    <tr>
            <th><cpanel langprint="Account"></th>
            <th class="sorttable_nosort"><cpanel langprint="Password"></th>
            <th class="sorttable_nosort"><cpanel langprint="Phone Number"></th>
            <th class="sorttable_nosort"><cpanel langprint="Functions"></th>
        </tr>
    </thead>
        <tbody>


 <cpanelif $FORM{'domain'}>
                <?cp CommuniGate::GWAccounts(
[tr class="info-even"]
 [form action="iphone.html"]
                [td class="cell truncate" truncate="80"]%[/td]
                [td width="32" ][input type="password" name="password"][/td]
                [td width="32" ][input type="text" name="number"][/td]
                [td class="maindisp" nowrap="nowrap"]
                                [div align="center"]
                                        [input class="input-button" type="submit" value="$LANG{'CGPProvisioniPhone'}" /]                                [/div]
                                        [input type="hidden" name="account" value="%" /]                                
                        [/form]
                [/td]
        [/tr]
,mail,mail) domain=$FORM{'domain'}?>
        </cpanelif>




        <cpanelif !$FORM{'domain'}>
                <?cp CommuniGate::GWAccounts(
[tr class="info-even"]
 [form action="iphone.html"]
                [td class="cell truncate" truncate="80"]%[/td]
                [td width="32" ][input type="password" name="password"][/td]
                [td width="32" ][input type="text" name="number"][/td]
                [td class="maindisp" nowrap="nowrap"]
                                [div align="center"]
                                        [input class="input-button" type="submit" value="$LANG{'CGPProvisioniPhone'}" /]                                [/div]
                                        [input type="hidden" name="account" value="%" /]   
                        [/form]
                [/td]
        [/tr]
,mail,mail) ?>
        </cpanelif>
       </tbody>
    </table>
</cpanelfeature>






</div><!-- end body-content div -->

<cpanel Branding="include(stdfooter.html)">
